import java.net.InetAddress;
import java.net.UnknownHostException;


public class Q2
{
	private static InetAddress ia;

	/**
	 * @param args
	 * @throws UnknownHostException 
	 */
	public static void main(String[] args) throws UnknownHostException
	{
		Q2.ia = InetAddress.getLocalHost();
		System.out.print(Q2.ia.toString());
		byte [] address = Q2.ia.getAddress();
		
		for(int i = 0; i < 10; i++)
		{
			address[address.length-1]++;
			
			InetAddress current = InetAddress.getByAddress(address);
			System.out.println(current.toString());
		}

	}

}
